﻿using Newtonsoft.Json;
using SqlSugar;

namespace AdminBase.Model.Entitys
{
    /// <summary>
    /// 部门模型类
    /// </summary>
    public class Departments : EntityCommon
    {
        /// <summary>
        /// 部门名
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 父级ID
        /// </summary>
        [JsonProperty("parentID")]
        public long? ParentID { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [JsonProperty("sort")]
        public int? Sort { get; set; }
    }
}
